package com.jxtti.dao;

import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Repository;

import com.jxtti.entity.ArticleCategory;

@Repository
public interface ArticleCategoryDao<T> {
	public List<ArticleCategory> queryByList(Map<String, Object> data);
	
	public ArticleCategory queryById(ArticleCategory  entity);
	
	public List<ArticleCategory> findByPid(Map<String, Object> data);	
	
	public int add(ArticleCategory entity);	
	
	public int update(ArticleCategory entity);	
	
	public int delete(ArticleCategory entity);
	
	public int queryByCount(ArticleCategory entity);
	
	List<ArticleCategory> getTreeNodes(Map<String, String> data);
	
	public List<ArticleCategory> findPidAndPid(Map<String, Object> data);
	
	public List<ArticleCategory> findChildAndChild(Map<String, Object> data);
	
}
